﻿using Basic.FlowApplication.Interface;
using Basic.FlowRemoteModel.Application;
using Basic.FlowRemoteModel.Application.Model;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowApplication.RpcEvent
{
    internal class AuditNodeStateEvent : IRpcApiService
    {
        private readonly IFlowNodeStateService _Service;

        public AuditNodeStateEvent ( IFlowNodeStateService service )
        {
            this._Service = service;
        }

        public FlowNodeState[] GetAuditNodeState ( GetAuditNodeState obj )
        {
            return this._Service.GetNodes(obj.LogId, obj.FlowId);
        }
    }
}
